# 基础镜像
FROM  openjdk:11-jre
# author
MAINTAINER flightultimate

ARG MODULE_NAME
ENV M=${MODULE_NAME}

# 挂载目录
VOLUME /var/lib/fu/$M
# 创建目录
RUN mkdir -p /var/lib/fu/$M

# 复制jar文件到路径
ADD ./jar/flight-ultimate-${M}.jar /var/lib/fu/$M/
 
RUN chmod +x /var/lib/fu/${M}/flight-ultimate-${M}.jar
# 启动网关服务
CMD java -jar /var/lib/fu/${M}/flight-ultimate-${M}.jar
